<%@ page language="java" contentType="text/html; charset=utf-8"
	import="java.util.*,com.zh.tea.entity.*,com.github.pagehelper.PageInfo"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>新闻中心</title>
<link rel="stylesheet" type="text/css" href="css/News/body.css" />
<link rel="stylesheet" type="text/css" href="css/News/newsCentre.css" />
</head>
<body>

<c:if test="${empty pageinfo }">
	<c:redirect url="/NewsServlet?opt=page"></c:redirect>
</c:if>
<c:set value="${pageinfo }" var="pageinfo"></c:set>

	<div id="header" class="top"
		style="background-image: url('images/News/hd_bg.jpg');">
		<div class="top_con clearfix">
			<div class="logo fl"></div>
			<div class="nav fl">
				<div class="nav-im fl"></div>
				<ul class="fl">
					<li><a href="index.jsp">茶坊首页</a></li>
					<li><a href="culture.jsp">品德文化</a></li>
					<li><a href="showtealist.jsp">茶品展示</a></li>
					<li><a href="newsCentre.jsp">新闻中心</a></li>
					<li><a href="#">营销服务</a></li>
					<li><a href="#">招商联盟</a></li>
					<li><a href="contactus.jsp">联系我们</a></li>
					<li><a href="teashoplist.jsp">茶具商店</a></li>
				</ul>
			</div>
			<div class="login fr">
				<c:if test="${ !empty (User)}">
					<p class="p2">欢迎${User.passname }!</p>
				</c:if>
				<c:if test="${empty User }">
					<img src="images/login.png" alt="" />
					<p class="p1">
						<a id="Login_start_"
							href="<%=request.getContextPath()%>/login1.jsp">登录</a>·<a
							id="Regist_start_"
							href="<%=request.getContextPath()%>/login2.jsp">注册</a>
					</p>
					<p class="p2">中/En</p>
				</c:if>
			</div>
		</div>
		<div id="page_title">
			<h1>
				新闻中心
				</h4>
				<h1>News Center</h1>
		</div>
		<div id="little_navi">
			<div class="navi">
				<p id="p3">
					当前位置><a href="index.jsp">茶坊首页</a>><a href="newsCentre.jsp">新闻中心</a>
				</p>
				<p id="p4">
					<a href="#">企业资讯</a><a href="#">茶艺动态</a><a href="#">企业事件</a><a
						href="#">最新活动</a><a href="#">公告公示</a>
				</p>

			</div>

		</div>

	</div>
	<div id="main">
		<div id="News_div">
			<center>
				<hr id="main_hr" width="65%" size=3>
			</center>
			<c:forEach items="${pageinfo.getList() }" var="news">

				<div class="news_content">
					<img alt="" src="${news.getPic1() }">
					<dl style="word-wrap: break-word;">
						<dt>
							<a
								href="<%=request.getContextPath()%>/NewsServlet?opt=detailNews&nid=${news.getNid() }"><c:out
									value="${news.getTitle() }"></c:out></a>
						</dt>
						<dd>
							<p>${news.getPage1() }</p>
						</dd>
						<hr style="width: 30px; margin-top: 50px" align="left">
						<p style="font-size: 10px; margin-bottom: 30px">
							浏览次数：123次 发布日期：
							<fmt:formatDate value="${news.getDate() }"
								pattern="yyyy-MM-ss HH:mm:ss" />
						</p>

					</dl>

				</div>
			</c:forEach>

		</div>
		<center>
			<a href="NewsServlet?opt=page&pageindex=1">首页</a> <a
				href="NewsServlet?opt=page&pageindex=${pageinfo.getPageNum()-1 }">上一页</a>
			${pageinfo.getPageNum() }/${pageinfo.getPages() }頁 <a
				href="NewsServlet?opt=page&pageindex=${pageinfo.getPageNum()+1 }">下一页</a>
			<a href="NewsServlet?opt=page&pageindex=${pageinfo.getPages() }">末页</a>
		</center>

	</div>
	<div id="footer">

		<div id="footer1">
			<img src="images/News/finallogo.png">
		</div>
		<div id="footer2">
			<table id="table1">
				<tr>
					<td></td>
					<td>咨询热线：</td>
				</tr>
				<tr>
					<td></td>
					<td>0371-6645209</td>
				</tr>
				<tr style="height: 15px">
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td>地址：</td>
				</tr>
				<tr>
					<td></td>
					<td>河南省郑州市中原区梧桐街道A区</td>
				</tr>
				<img src="images/News/bottomqq.png">
			</table>
		</div>
		<div id="footer3">
			<img src="images/News/erweima.jpg">
			<p>
				<b>关注公司官方账号</b>
			</p>
		</div>
		<div id="footer4">
			<table id="table2">
				<tr class="tr">
					<td><b>品牌文化</b></td>
					<td><b>茶品展示</b></td>
					<td><b>营销服务</b></td>
					<td><b>友情链接</b></td>
					<td><b>茶具商店</b></td>
				</tr>
				<tr>
					<td><b>品牌介绍</b></td>
					<td><b>普洱生茶</b></td>
					<td><b>店面查询</b></td>
					<td><b>小罐茶</b></td>
					<td><b>陈檀香木茶具</b></td>
				</tr>
				<tr>
					<td><b>茶之文化</b></td>
					<td><b>普洱熟茶</b></td>
					<td><b>官方旗舰店</b></td>
					<td><b>乌龙蜜茶</b></td>
					<td><b>皇家器具</b></td>
				</tr>
				<tr>
					<td><b>茶之文化</b></td>
					<td><b>西湖龙井</b></td>
					<td></td>
					<td><b>云和数据</b></td>
					<td><b>双虎家私</b></td>
				</tr>
				<tr>
					<td><b>茶之健康</b></td>
					<td><b>大红袍</b></td>
					<td></td>
					<td><b>郑州航院</b></td>
					<td><b>魅红茶杯</b></td>
				</tr>
				<tr>
					<td><b>茶之品享</b></td>
					<td><b>茉莉花茶</b></td>
					<td></td>
					<td></td>
					<td></td>
				</tr>
			</table>
		</div>
		<div id="last">CopyRight 2012 云茗茶坊 All Right Reserved
			豫ICP备12004376号 技术支持 ：云和数据</div>

	</div>

<c:remove var="pageinfo" scope="session"/>
</body>
</html>